<template>
  <div id="app">
    <router-view v-if="isShow" />
    <!--  chatAI聊天对话框  -->
    <chat-embed  />
  </div>
</template>

<script>

import ChatEmbed from "@/views/chat/MaxKbChat.vue";

export default {
  name: 'App',
  components: {ChatEmbed},
  provide(){
    return{
      reload:this.reload
    }
  },
  data(){
    return{
      isShow:true
    }
  },

  methods:{
    reload(){
      this.isShow=false;
      this.$nextTick(()=>{
        this.isShow=true
      })
    }

  }
}
</script>

<style>
#app {
  font-family: Avenir, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /*text-align: center;*/
  color: #2c3e50;
}
</style>
